home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Apple II / Essentials / Essentials.sea / APW Interfaces / CInclude / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  2.0 KB  |  68 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Scrap.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc. 1986-93
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __CONTROL__
  14. #include <CONTROL.h>    /* for definition of WindowPtr */
  15. #endif
  16.  
  17. #ifndef __SCRAP__
  18. #define __SCRAP__
  19.  
  20.  
  21. /* Error Codes */
  22. #define badScrapType 0x1610  /* No scrap of this type. */
  23.  
  24. /* Scrap Types */
  25. #define textScrap 0x0000
  26. #define picScrap 0x0001
  27. #define sampledSoundScrap 0x0002
  28. #define teStyleScrap 0x0064
  29. #define iconScrap 0x4945
  30. #define maskScrap 0x8001
  31. #define colorTableScrap 0x8002
  32. #define resourceRefScrap 0x8003
  33.  
  34. /* ShowClipboard flag values */
  35. #define cpOpenWindow 0x8000
  36. #define cpCloseWindow 0x4000
  37.  
  38. typedef struct scrapInfo {
  39.     Word scrapType;
  40.     LongWord scrapSize;
  41.     Handle scrapHandle;
  42. } ;
  43. typedef struct scrapInfo scrapInfo, *scrapInfoPtr, **scrapInfoHndl;
  44.  
  45. extern pascal void GetScrap() inline(0x0D16,dispatcher);
  46. extern pascal Word GetScrapCount() inline(0x1216,dispatcher);
  47. extern pascal handle GetScrapHandle() inline(0x0E16,dispatcher);
  48. extern pascal Pointer GetScrapPath() inline(0x1016,dispatcher);
  49. extern pascal LongWord GetScrapSize() inline(0x0F16,dispatcher);
  50. extern pascal Word GetScrapState() inline(0x1316,dispatcher);
  51. extern pascal void LoadScrap() inline(0x0A16,dispatcher);
  52. extern pascal void PutScrap() inline(0x0C16,dispatcher);
  53. extern pascal void ScrapBootInit() inline(0x0116,dispatcher);
  54. extern pascal void ScrapReset() inline(0x0516,dispatcher);
  55. extern pascal void ScrapShutDown() inline(0x0316,dispatcher);
  56. extern pascal void ScrapStartUp() inline(0x0216,dispatcher);
  57. extern pascal Boolean ScrapStatus() inline(0x0616,dispatcher);
  58. extern pascal Word ScrapVersion() inline(0x0416,dispatcher);
  59. extern pascal void SetScrapPath() inline(0x1116,dispatcher);
  60. extern pascal void UnloadScrap() inline(0x0916,dispatcher);
  61. extern pascal void ZeroScrap() inline(0x0B16,dispatcher);
  62.  
  63. extern pascal void GetIndScrap() inline(0x1416,dispatcher);
  64.  
  65. extern pascal WindowPtr ShowClipboard() inline(0x1516,dispatcher);
  66.  
  67. #endif
  68.